<template>
  <div class="member-item-main">
    <img class="member-img" :src="person_img" />
    <div class="person-masking">
      <h3 style="color: white">{{ full_name }}</h3>
      <p>{{ posts }}</p>
      <p>{{ en_name }}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "MemberItem",
  data: function () {
    return {};
  },
  props: {
    full_name: String,
    posts: String,
    en_name: String,
    person_img: String,
  },
};
</script>

<style>
.member-item-main {
  width: 22%;
  height: 410px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.member-img {
  width: 100%;
  height: 100%;
}
.member-item-main:hover .member-img {
  transform-origin: center;
  transform: scale(1.1);
  transition: all 0.3s linear;
}
.person-masking {
  width: 80%;
  height: 23%;
  padding: 10px 20px;
  position: absolute;
  top: 70%;
  background-color: rgba(215, 168, 130, 0.8);
}
.person-masking p {
  font-size: 12px;
  margin-top: 5px;
  color: white;
}
</style>